package com.hgw.Demo05_PrototypePattern.Exercises7_7_6.DeepCloning;

/**
 * Data time:2021/12/13 11:57
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {

    public static void main(String[] args) throws CloneNotSupportedException {
        Customer customer = new Customer();
        Customer clone = (Customer) customer.clone();

        System.out.println("customer是否一样 :" + (customer==clone));
        System.out.println("Address是否一样 :" + (customer.getAddress()==clone.getAddress()));
    }
}
